﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
        xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" x:Class="IMPressive.ParamGraphWindow"
        Height="490" Width="725" Loaded="Window_Loaded" SizeChanged="Window_SizeChanged" ResizeMode="CanMinimize" Icon="icon.ico" WindowStartupLocation="CenterOwner">
    <Window.Resources>
        <DrawingBrush x:Key="FormCanvasGridTile" Stretch="None" TileMode="Tile" 
                  Viewport="0,0,30,30" ViewportUnits="Absolute">
            <DrawingBrush.Drawing>
                <GeometryDrawing>
                    <GeometryDrawing.Geometry>
                        <GeometryGroup>
                            <LineGeometry StartPoint="0,0" EndPoint="30,0" />
                            <LineGeometry StartPoint="30,0" EndPoint="30,30" />
                            <LineGeometry StartPoint="30,30" EndPoint="0,30" />
                            <LineGeometry StartPoint="0,30" EndPoint="0,0" />
                        </GeometryGroup>
                    </GeometryDrawing.Geometry>
                    <GeometryDrawing.Pen>
                        <Pen Thickness="1" Brush="LightGray" />
                    </GeometryDrawing.Pen>
                    <GeometryDrawing.Brush>
                        <Brush>White</Brush>
                    </GeometryDrawing.Brush>
                </GeometryDrawing>
            </DrawingBrush.Drawing>
        </DrawingBrush>
    </Window.Resources>
    <Grid>
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFEDF4FC" Offset="0"/>
                <GradientStop Color="#FFD9E4F1" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>
        <Grid Margin="0,52,0,48" Background="White">
            <Canvas x:Name="chartCanvas" Margin="0" Background="{StaticResource FormCanvasGridTile}" MouseWheel="chartCanvas_MouseWheel">
                <Canvas.RenderTransform>
                    <ScaleTransform x:Name="st"/>
                </Canvas.RenderTransform>

            </Canvas>
        </Grid>
        <Button x:Name="btnLoad" Content="OK" HorizontalAlignment="Left" Margin="556,10,0,0" VerticalAlignment="Top" Width="76" BorderBrush="#FF8696AA" Style="{StaticResource NormalButton}" Height="26" Click="btnLoad_Click" HorizontalContentAlignment="Left" VerticalContentAlignment="Top" Foreground="#FF1E395B"/>
        <Border BorderThickness="1" Margin="21,10,0,0" Padding="5" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Background="White" Width="211" SnapsToDevicePixels="False" HorizontalAlignment="Left" VerticalAlignment="Top">
            <controls:AutoCompleteBox x:Name="txtOpX" HorizontalAlignment="Left" Height="24" Margin="-5" VerticalAlignment="Top" Width="210" FontFamily="Cambria Math" FontSize="18" Foreground="#FF333333" Padding="0,2,3,0" BorderBrush="{x:Null}" BorderThickness="0" KeyUp="txtOperation_KeyUp" Text="16*sin(t)^3">
                <controls:AutoCompleteBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </controls:AutoCompleteBox.Background>
            </controls:AutoCompleteBox>
        </Border>

        <Button x:Name="btnClear" Content="Effacer" HorizontalAlignment="Left" Margin="637,10,0,0" VerticalAlignment="Top" Width="76" BorderBrush="#FF8696AA" Style="{StaticResource NormalButton}" Height="26" HorizontalContentAlignment="Left" VerticalContentAlignment="Top" Click="btnClear_Click" Foreground="#FF1E395B"/>
        <Border BorderThickness="1" Margin="470,10,0,0" Padding="0" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Width="81" SnapsToDevicePixels="False" HorizontalAlignment="Left" VerticalAlignment="Top">
            <Border x:Name="bg2" BorderThickness="1" BorderBrush="White" CornerRadius="1">
                <xctk:ColorPicker x:Name="cpxColor" HorizontalAlignment="Left"  VerticalAlignment="Top" Height="24" Width="80" Margin="-1,-1,-2,-1" SelectedColor="Red" AvailableColorsHeader="Couleurs disponibles" StandardColorsHeader="Couleurs standards" RecentColorsHeader="Couleurs récentes" ShowAdvancedButton="False" BorderBrush="{x:Null}" Foreground="#FF1E395B">
                    <xctk:ColorPicker.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFF0F6FB" Offset="0"/>
                            <GradientStop Color="#FFD7E2EF" Offset="1"/>
                            <GradientStop Color="#FFE2EAF3" Offset="0.5"/>
                            <GradientStop Color="#FFD5E0ED" Offset="0.5"/>
                        </LinearGradientBrush>
                    </xctk:ColorPicker.Background>
                </xctk:ColorPicker>
            </Border>
        </Border>
        <TextBlock HorizontalAlignment="Left" Margin="9,0,0,9" TextWrapping="Wrap" Text="Pour t de" VerticalAlignment="Bottom" FontSize="14"/>
        <Border BorderThickness="1" Margin="72,0,0,10" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Padding="5" Background="White" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="76" MinWidth="76">
            <TextBox x:Name="txtFromX" Height="24" Width="75" FontFamily="Cambria Math" FontSize="18" Foreground="#FF333333" Padding="0,2,3,0" BorderBrush="{x:Null}" BorderThickness="0" KeyUp="txtOperation_KeyUp" Text="-10" Margin="-5" SnapsToDevicePixels="False" VerticalAlignment="Bottom">
                <TextBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </TextBox.Background>
            </TextBox>
        </Border>
        <Border BorderThickness="1" Margin="165,0,0,10" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Padding="5" Background="White" SnapsToDevicePixels="False" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="76">
            <TextBox x:Name="txtToX" Height="24" Width="75" FontFamily="Cambria Math" FontSize="18" Foreground="#FF333333" Padding="0,2,3,0" BorderBrush="{x:Null}" BorderThickness="0" KeyUp="txtOperation_KeyUp" Text="10" Margin="-5" HorizontalContentAlignment="Stretch" VerticalAlignment="Bottom">
                <TextBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </TextBox.Background>
            </TextBox>
        </Border>
        <Border BorderThickness="1" Margin="279,0,0,10" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Padding="5" Background="White" SnapsToDevicePixels="False" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="76">
            <TextBox x:Name="txtPasX" Height="24" Width="75" FontFamily="Cambria Math" FontSize="18" Foreground="#FF333333" Padding="0,2,3,0" BorderBrush="{x:Null}" BorderThickness="0" KeyUp="txtOperation_KeyUp" Text="0,01" Margin="-5" HorizontalContentAlignment="Stretch" VerticalAlignment="Bottom">
                <TextBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </TextBox.Background>
            </TextBox>
        </Border>
        <TextBlock HorizontalAlignment="Left" Margin="153,0,0,9" TextWrapping="Wrap" Text="à" VerticalAlignment="Bottom" FontSize="14"/>
        <TextBlock HorizontalAlignment="Left" Margin="246,0,0,9" TextWrapping="Wrap" Text="pas :" VerticalAlignment="Bottom" FontSize="14"/>
        <Border BorderThickness="1" Margin="254,10,0,0" Padding="5" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Background="White" Width="211" SnapsToDevicePixels="False" HorizontalAlignment="Left" VerticalAlignment="Top">
            <controls:AutoCompleteBox x:Name="txtOpY" HorizontalAlignment="Left" Height="24" Margin="-5" VerticalAlignment="Top" Width="210" FontFamily="Cambria Math" FontSize="18" Foreground="#FF333333" Padding="0,2,3,0" BorderBrush="{x:Null}" BorderThickness="0" KeyUp="txtOperation_KeyUp" Text="16*cos(t)^3">
                <controls:AutoCompleteBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </controls:AutoCompleteBox.Background>
            </controls:AutoCompleteBox>
        </Border>
        <TextBlock HorizontalAlignment="Left" Margin="3,13,0,0" TextWrapping="Wrap" Text="x=" VerticalAlignment="Top" FontSize="14"/>
        <TextBlock HorizontalAlignment="Left" Margin="236,13,0,0" TextWrapping="Wrap" Text="y=" VerticalAlignment="Top" FontSize="14"/>
    </Grid>
</Window>
